package com.framework.plugin.xmlsql.tag;

import java.util.Map;

import javax.xml.namespace.QName;
import javax.xml.stream.events.StartElement;

@SuppressWarnings("rawtypes")
public abstract class DefaultTag implements Tag {
	
	private StartElement se;
	private Map map;
	
	public StartElement getSe() {
		return se;
	}

	public void setSe(StartElement se) {
		this.se = se;
	}

	public Map getMap() {
		return map;
	}

	public void setMap(Map map) {
		this.map = map;
	}

	public String attr(String name) {
		return se.getAttributeByName(new QName(name)).getValue();
	}

}
